package com.migration.model.olddb;

import jakarta.persistence.*;
import lombok.Data;
import java.time.LocalDateTime;
import java.io.Serializable;

/**
 * 防护措施检查项表 实体类
 * 表名：ra_checklist_task
 * 自动生成的实体类
 */
@Data
@Entity
@Table(name = "ra_checklist_task")
public class RaChecklistTask implements Serializable {

    private static final long serialVersionUID = 1L;
    
    /**
     * 主键
     * 主键
     */
    @Id
    @Column(name = "id", nullable = false)
    private Long id;
    
    /**
     * 检查code
     */
    @Column(name = "check_code", length = 500)
    private String checkCode;
    
    /**
     * 防护措施id
     */
    @Column(name = "defend_id", nullable = false)
    private Long defendId;
    
    /**
     * 防护措施类型
     * 默认值: 0
     */
    @Column(name = "defend_type", nullable = false)
    private Byte defendType;
    
    /**
     * 任务生成类型
     */
    @Column(name = "task_type", nullable = false)
    private Byte taskType;
    
    /**
     * 状态（枚举）
     * 默认值: 1
     */
    @Column(name = "status", nullable = false)
    private Byte status;
    
    /**
     * 完成时间
     */
    @Column(name = "check_time")
    private java.time.LocalDateTime checkTime;
    
    /**
     * 租户主键
     * 默认值: 1
     */
    @Column(name = "tenant_id")
    private Integer tenantId;
    
    /**
     * 是否删除（0、否 1、是）
     * 默认值: 0
     */
    @Column(name = "is_del", nullable = false)
    private Byte isDel;
    
    /**
     * 创建时间
     * 默认值: CURRENT_TIMESTAMP
     */
    @Column(name = "create_time", nullable = false)
    private java.time.LocalDateTime createTime;
    
    /**
     * 创建者
     */
    @Column(name = "create_by", length = 100)
    private String createBy;
    
    @Override
    public String toString() {
        return "RaChecklistTask{" +
            "id=" + id +
            ", checkCode=" + checkCode +
            ", defendId=" + defendId +
            ", defendType=" + defendType +
            ", taskType=" + taskType +
            ", status=" + status +
            ", checkTime=" + checkTime +
            ", tenantId=" + tenantId +
            ", isDel=" + isDel +
            ", createTime=" + createTime +
            ", createBy=" + createBy +
        '}';
    }
} 